e431010c5796f466fb3189a165e3c77663228ce8,src/main/java/org/isatools/isacreator/ontologymanager/bioportal/jsonresulthandlers/BioPortalAnnotatorResultHandler.java,BioPortalAnnotatorResultHandler,extractAnnotatorResult,#JsonObject#,66

Before Change



        JsonNumber from = null, to = null;

        for (JsonObject annotation : resultItem.getJsonArray("annotations").getValuesAs(JsonObject.class)) {
            from = annotation.getJsonNumber("from");
            to = annotation.getJsonNumber("to");
        }

After Change



        int from = -1, to = -1;

        for (Object annotation : (JSONArray)resultItem.get("annotations")) {
            JSONObject annotationObject = (JSONObject) annotation;
            from = Integer.valueOf(annotationObject.get("from").toString());
            to = Integer.valueOf(annotationObject.get("to").toString());